#include <stdio.h>
#include <malloc.h>
#include "unp.h"
#include "threadpool.h"

#define RESPONSE_SIZE (400*1024*sizeof(char))
//#define FILE_LOC ("./temp.html")
#define FILE_SIZE (1024*1024*sizeof(char))
#define FILE_URL ("./images/url_image.txt")
#define LENGTH_FILENAME (100)

int crawler(const char *url, const char *path, const char *filename, char *mode);
struct s_url* getDPF(const char *url);

struct s_url
{
	char *domainame;
	char *path;
	char *filename;
};